package com.example.lab2.infra.feign.fallback;

import com.example.lab2.domain.entity.Job;
import com.example.lab2.infra.feign.JobFeign;
import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

@Slf4j
public class JobFeignFallback implements JobFeign {

//    private static final Logger logger = LoggerFactory.getLogger(JobFeignFallback.class);

    @Override
    public Job getJobInfoById(String jobId) {
        log.error("远程调用过程失败, JOB_ID: {}", jobId);
        return null;
    }

    @Override
    public void updateJob(Job job) {
        log.error("远程调用过程失败, JOB: {}", job);

        // 不允许出现在开发代码中
        System.out.println("远程调用过程失败");



    }
}
